<div class="one_news" id="one_news">
	<a href="/admin/user/add" class="sexybutton sexysimple sexygreen">Add New User</a><br />
</div>

<table width="100%" cellspacing="0" cellpadding="8" class="newsfeed" id="myTable" border="0"  valign="top">
<thead>
	<tr>
		<th>ID#</th>
		<th>E-mail</th>
        <th>Name</th>        
		<th>Role</th>
        <th>Free-Style <br />project</th>
		<th>&nbsp;</th>
		<th>&nbsp;</th>
	</tr>
</thead>	
<tbody>

	<?php
	foreach ($this->paginator as $oUser)
	{
		?>
	<tr class="{id: '<?php echo $oUser['id']; ?>'}" valign="top">
		<td><?php echo $oUser['id']; ?></td>
		<td class="{field: 'email'}"><?php echo $this->escape($oUser['email']); ?></td>
        <td class="{field: 'name'}"><?php echo $this->escape($oUser['name']); ?></td>
		<td class="{field: 'role'}"><?php echo $this->escape($oUser['role']); ?></td>
<?php /*		<td class="{field: 'phone'}"><?php echo $this->escape($oUser['phone']); ?></td> 
		<td class="{field: 'status'}"><?php echo $this->escape($oUser['status']); ?></td>
*/ ?>
        <td class="{field: 'freestyle'} <?php echo '1' == $this->escape($oUser['freestyle_project']) ? ' purple' :'' ; ?>"><?php echo '1' == $this->escape($oUser['freestyle_project']) ? 'on' :'off' ; ?></td>

		<td><a href="/admin/user/edit/id/<?php echo $oUser['id']; ?>"  class="sexybutton sexysimple sexygreen"><span class="edit">Edit</span></a></td>
		<td class="del_element"><a
			href="/admin/user/delete/id/<?php echo $oUser['id']; ?>" class="sexybutton sexysimple sexygreen"><span class="delete">Delete</span></a></td>
	</tr>
	<?php
	}
	?>
	
</tbody>	
</table>

	<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>
